#if !defined(AFX_USERMANDLG_H__7F59FA01_C298_4863_BA37_6FF30CA53994__INCLUDED_)
#define AFX_USERMANDLG_H__7F59FA01_C298_4863_BA37_6FF30CA53994__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// UserManDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CUserManDlg dialog

class CUserManDlg : public CDialog
{
// Construction
public:
	CUserManDlg(CWnd* pParent = NULL);   // standard constructor


// Dialog Data
	//{{AFX_DATA(CUserManDlg)
	enum { IDD = IDD_USER_MAN_DLG };
	CComboBox	m_userAuthority;
	CListCtrl	m_listUser;
	CString	m_userName;
	CString	m_userPasswd;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CUserManDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation

private:
	_variant_t m_vUserName,m_vUserPasswd,m_vUserAuthority;
	_RecordsetPtr m_pRecordset;
	
	BOOL m_bSuccess;
	int m_nCurrentSel;

	int CheckValid();
	void SetBtnState();
	void LoadData();
	void SaveData();
protected:

	// Generated message map functions
	//{{AFX_MSG(CUserManDlg)
	afx_msg void OnBtnAdd();
	afx_msg void OnBtnDelete();
	afx_msg void OnBtnModify();
	afx_msg void OnItemchangedListUser(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClose();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_USERMANDLG_H__7F59FA01_C298_4863_BA37_6FF30CA53994__INCLUDED_)
